public class Testextends {
    public static void main(String[] args) {
        Dog dog = new Dog();
        System.out.println(dog.name);
        System.out.println(dog.age);


        System.out.println("--------------");
        dog.eat();
        dog.sleep();
        dog.bark();

        System.out.println("--------------");
        Cat cat = new Cat();
        cat.eat();
        cat.sleep();
        cat.mew();

    }

}
